home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Clinical Endocrinology
/
Clinical Endocrinology.iso
/
mac
/
Endocrinology Folder
/
Data
/
Init.dir
/
00004_Script_4
< prev
Wrap
Text File
|
1995-11-09
|
2KB
|
55 lines
-- RearWindow XObject Example Movie
-- by David Jackson-Shields
-- vers. 1.0.2 (10/11/93)
--
-- ⌐ 1992-94 by Macromedia, Inc. and David Jackson-Shields
-- All Rights Reserved
--
-- This movie demonstrates the use of the RearWindow XObject, which requires
-- System 6.0.5 or later.
-- The uses of the "RearWindow XObject" are:
-- (1) When using a Stage size smaller than your monitor screen...you
-- can cover the Finder Desktop when running on system 7.x or later,
-- (or when running with systems 6.0.7 or later under "Multi-Finder" mode.)
-- Options include filling the Rear Window with:
-- (A) a 1-bit QuickDraw pattern: white, ltGray, gray, dkGray, black
-- (B) the Finder Desktop pattern (whether color or black & white)
-- (C) an indexed color of the current palette
-- (D) an RGB color (specified by Red, Green, Blue values)
-- (E) a Director bitmapped castMember (either stretched or non-stretched)
-- (F) a PICT file image (either stretched or non-stretched)
-- (2) To obtain the monitor screen pixel dimensions (top, left, bottom, right)
-- NOTE: The addition of an extra window even larger than your Stage will
-- impact the memory requirements of your project. Check the "About MM"
-- memory guage, or put the freeBytes and the freeBlock in the message
-- window to see the impact this extra window has, and adjust your movieÆs
-- memory management as needed. In addition, a copy of any castMember or
-- PICT file image used in RearWindow is kept in RAM. This is so it can
-- be redrawn in the RearWindow during update events...(like when the user
-- opens a Desk Accessory or goes to MultiFinder and back, etc.)
on BlackOut
global blackOutXObj
if objectP( blackOutXObj ) then blackOutXObj( mDispose )
if factory( "RearWindow" ) = 0 then
OpenXLib "RearWindow XObj"
end if
-- [ "M" indicates multiple monitors.]
set blackOutXObj= RearWindow( mNew, "M" )
set resultCode = value( blackOutXObj )
if resultCode < 0 then
alert "System Error trying to create the RearWindow" && string( resultCode )
end if
--(int is an integer from 0 to 255:)
set resultCode = blackOutXObj( mIndexColorToWindow, 255 ) -- fills index black
end BlackOut